<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
		<script type="text/javascript">
			function show() {
				var dw = window.open();
				dw.document.open();
				dw.document.write('<!DOCTYPE html>');
				dw.document.write('<html>');
				dw.document.write('	<head>');
				dw.document.write('		<meta charset="utf-8">');
				dw.document.write('		<title></title>');
				dw.document.write('	</head>');
				dw.document.write('	<body>');
				dw.document.write('		<h1>新页面！</h1>');
				dw.document.write('</body></html>');
				dw.document.close();
			}
		</script>
		
	</head>
	<body>
		<button onclick="show()">打开新页面</button>


	</body>
</html>
